import java.util.Scanner;

public class Player {
    private int levelNo;
    private int curScore;
    private long startTime;
    private int elapsedTime;

    public int getLevelNo() {
        return levelNo;
    }

    public void setLevelNo(int levelNo) {
        this.levelNo = levelNo;
    }

    public int getCurScore() {
        return curScore;
    }

    public void setCurScore(int curScore) {
        this.curScore = curScore;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public int getElapsedTime() {
        return elapsedTime;
    }

    public void setElapsedTime(int elapsedTime) {
        this.elapsedTime = elapsedTime;
    }

    public void play(){
        for(int i = 0;i<LevelParam.LEVELS.length;i++){
            this.setLevelNo(this.getLevelNo()+1);
            this.setStartTime(System.currentTimeMillis());
            this.setCurScore(0);
             for(int j=0;j<LevelParam.LEVELS[this.getLevelNo()-1].getStrTime();j++) {
                 Game game = new Game(this);
                 String buffer = game.printStr();
                 Scanner input = new Scanner(System.in);
                 String str = input.next();
                 game.printResult(buffer, str);
             }
            System.out.println("恭喜升级");
        }

    }

}
